package com.design.bridge;

/**
 * @Author: ChengLei.Liu
 * @Date: 2020-07-22 09:25
 * @Description: 桥
 */
public abstract class Phone {
    private Brand brand;

    public Phone(Brand brand){
        this.brand = brand;
    }

    protected void open(){
        brand.open();
    }

    protected void call(){
        brand.call();
    }

    protected void close(){
        brand.close();
    }
}
